package com.exam.dao;

import java.sql.SQLException;

public class AdminDao extends BaseDao{
	
	public boolean checkAdminLogin(String username,String password) throws SQLException{
		String sql = "select * from ex_admin where username='"+username+"' and password='"+password +"'" ;
		res = query(sql);
		boolean b = false;
		if(res.next()){
			b = true;
		}
		closeDB();
		return b;
	}
	
}
